package com.glamour.hlcity.module.dom.analysis.impl;

import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.glamour.hlcity.common.model.Node;
import com.glamour.hlcity.module.dom.analysis.TreeOverlap;

/**
 * 简单重叠实现
 * <li>不带属性判定</li>
 * <li>标识相同</li>
 * <li>层级相同</li>
 * <li>顺序相同</li>
 * @author zhaoxing.liuzx
 *
 */
public class SimpleTreeOverlap extends AbstractTreeOverlap {

	@Override
	boolean sameNode(Node mNode, Node cNode) {
		//标识相同
		if(mNode.getNodeNo().equals(cNode.getNodeNo())){
				//顺序相同
				if(mNode.getSiber().equals(cNode.getSiber())){
					return true;
				}
		}
		return false;
	}

	

}
